package com.parkingspace.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.parkingspace.dao.UserMapper;
import com.parkingspace.entity.Property;
import com.parkingspace.entity.PropertyBetweenUser;
import com.parkingspace.entity.User;
import com.parkingspace.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author Gapper
 * @since 2021-05-24
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {


    @Resource
    private  UserMapper userMapper;

    @Override
    public User getUserById(Long id) {
        System.out.println("UserServiceImpl进来了");
        QueryWrapper<Property> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("uid",id);
        User user = userMapper.selectById(id);
        return user;
    }
}
